package com.example.gustavo.hello.activity;

import android.app.Activity;
import android.app.LocalActivityManager;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.TabHost;
import android.widget.TabWidget;

import com.example.gustavo.hello.R;


public class TabHostActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_tab_host);

        TabHost tabHost = (TabHost) findViewById(R.id.tabHost);
        TabWidget tabWidget = (TabWidget) findViewById(android.R.id.tabs);

        tabHost.setup();
        tabHost.addTab(tabHost.newTabSpec("1").setIndicator("Tab01").setContent(R.id.tab01));
        tabHost.addTab(tabHost.newTabSpec("2").setIndicator("Tab02").setContent(R.id.tab02));
        tabHost.addTab(tabHost.newTabSpec("3").setIndicator("Tab03").setContent(R.id.tab03));



    }


}
